{temp('kefu/head')}
</head>
<body>
	<div class="pd-20">
		<div class="form form-horizontal" id="form-article-add">
			<div class="row cl">
				<label class="form-label col-2">企业名称:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['qy_name']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">企业类型:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{if($r['lx'] == 1)}
						普通
					{elseif($r['lx'] == 2)}
						VIP
					{/if}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">创建时间:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{code(echo date('Y-m-d H:i:s',$r['time']))}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">最后一次登录时间:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{code(echo date('Y-m-d H:i:s',$r['dltime']))}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">目前状态:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{if($r['lx'] == 0)}
						未激活
					{elseif($r['lx'] == 1)}
						激活
					{elseif($r['lx'] == 2)}
						冻结
					{/if}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">logo:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['logo']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">所属行业:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['sshy']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">企业性质:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['qyxz']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">联系人:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['linkman']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">联系电话:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['phone']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">邮箱:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['email']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">营业执照注册号:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['yyzzh']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">营业执照附件:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['qyjj']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">企业网址:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['url']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">省:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['sheng']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">市:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['shi']}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">区:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['qu']}
				</div>
			</div>
		
			<div class="row cl">
				<label class="form-label col-2">所在地:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['address']}
				</div>
			</div>
			
			<div class="row cl">
				<div class="col-10 col-offset-2">
					<button onClick="xiu(1);" class="btn btn-primary radius" type="submit">&nbsp;&nbsp;通过&nbsp;&nbsp;</button>
					<button onClick="xiu(2);" class="btn btn-primary radius" type="submit">&nbsp;&nbsp;拒绝&nbsp;&nbsp;</button>
					<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;暂不处理&nbsp;&nbsp;</button>
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">拒绝原因:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					<textarea rows="5" cols="40" id="jjyy" placeholder='拒绝时填写原因,200字以内'></textarea>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	function xiu(zt){
		var id = {$r['uid']};
		var jjyy;
		if(zt == 4){
			jjyy = $('#jjyy').val();
			if(jjyy == ''){
				layer.alert('填写拒绝原因');return ;
			}
		}
		$.post('{$_url}/kefu/?act=shenhe&met=qy_xiu',{id:id,zt:zt,jjyy:jjyy},function(data){
			if(data == 'cg'){
				layer.alert('修改成功');
				setTimeout(function(){parent.location.reload()},800);return ;
			}else if(data == 'error'){
				layer.alert('修改失败');return ;
			}else if(data == '-1'){
				layer.alert('填写拒绝原因');return ;
			}
		});
	}
	</script>
	{temp('kefu/foot')}
</body>
</html>